<template>
	<view class="schedule">
		<u-navbar :titleStyle="{fontWeight:'bold'}" title="物流信息" />
		<view class="schedule-card">
			<u-time-line>
				<u-time-line-item nodeTop="2" v-for="(item,index) in logistics_list" :key="index">
					<!-- 此处自定义了左边内容，用一个图标替代 -->
						<template v-slot:node>
							<view class="u-node" :style="{background:index?'#969696':'#19be6b'}">
								<!-- 此处为uView的icon组件 -->
								<u-icon name="pushpin-fill" color="#fff" :size="15"></u-icon>
							</view>
						</template>
					<template v-slot:content>
						<view>
							<view class="u-order-title">{{item.status}}</view>
							<view class="u-order-desc">{{item.areaName}}
							</view>
							<view class="u-order-desc">{{item.context}}
							</view>
							<view class="u-order-time">{{item.time}}</view>
						</view>
					</template>
				</u-time-line-item>
			</u-time-line>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		},
		onLoad(){
			console.log(this.logistics_list)
		}
	}
</script>

<style lang="scss">
	.schedule-card {
		padding: 10px 10px 10px 15px;
	}

	page {
		background: #FFF;
	}

	.u-node {
		width: 44rpx;
		height: 44rpx;
		border-radius: 100rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		background: #d0d0d0;
	}

	.u-order-title {
		color: #333333;
		font-weight: bold;
		font-size: 32rpx;
		margin-bottom: 8rpx;
	}

	.u-order-desc {
		color: rgb(150, 150, 150);
		font-size: 28rpx;
		margin-bottom: 6rpx;
	}

	.u-order-time {
		color: rgb(200, 200, 200);
		font-size: 26rpx;
	}
</style>
